﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AntEditor.Models.Material;
using Gods.Foundation;

namespace AntEditor.ViewModels.Material
{
    public class KeywordViewModel : NotificationObject
    {
        private readonly Keyword _keyword;

        public KeywordViewModel(Keyword keyword)
        {
            _keyword = keyword;
        }

        public string Name
        {
            get { return _keyword.Name; }
            set
            {
                _keyword.Name = value;
                RaisePropertyChanged("Name");
            }
        }

        public string PCUrl
        {
            get { return _keyword.PCUrl; }
            set
            {
                _keyword.PCUrl = value;
                RaisePropertyChanged("PCUrl");
            }
        }

        public string MobileUrl
        {
            get { return _keyword.MobileUrl; }
            set
            {
                _keyword.MobileUrl = value;
                RaisePropertyChanged("MobileUrl");
            }
        }

        public bool Paused
        {
            get { return _keyword.Paused; }
            set
            {
                _keyword.Paused = value;
                RaisePropertyChanged("Paused");
            }
        }
    }
}
